package servicesImp.specific;


import base.response.OffsetLimitPage;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import services.specific.AdminManageScheduleServices;
import wt.dao.specific.AdminManageScheduleMapper;
import wt.entity.specific.AdminManageSchedule;

import java.util.List;


/**
 * Created by Administrator on 2017/9/13.
 */
@Service
public class AdminManageScheduleServicesImp implements AdminManageScheduleServices {

    @Autowired
    AdminManageScheduleMapper adminManageScheduleMapper;
    public OffsetLimitPage select(String expertName, String idCard, Integer offset, Integer limit) throws Exception {
        PageHelper.offsetPage(offset, limit);
        List<AdminManageSchedule> recordList = adminManageScheduleMapper.select(expertName, idCard);
        return new OffsetLimitPage((Page) recordList);
    }



}
